import request from '@/utils/request'

export function characterList(data) {
  return request({
    url: '/admin/character/list',
    method: 'post',
    data
  })
}

export function characterAdd(data) {
  return request({
    url: '/admin/character/add',
    method: 'post',
    data
  })
}

export function characterDetail(data) {
  return request({
    url: `/admin/character/detail`,
    method: 'post',
    data
  })
}

export function characterUpdate(data) {
  return request({
    url: `/admin/character/modify`,
    method: 'post',
    data
  })
}